Optimal. Leaf size=79 \[ \sqrt{2 \pi } \sqrt{b} \sin (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )+\sqrt{2 \pi } \sqrt{b} \cos (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )+x \cos \left (a+\frac{b}{x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0495695, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {3360, 3388, 3353, 3352, 3351} \[ \sqrt{2 \pi } \sqrt{b} \sin (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )+\sqrt{2 \pi } \sqrt{b} \cos (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )+x \cos \left (a+\frac{b}{x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3360
Rule 3388
Rule 3353
Rule 3352
Rule 3351
Rubi steps
\begin{align*} \int \cos \left (a+\frac{b}{x^2}\right ) \, dx &=-\operatorname{Subst}\left (\int \frac{\cos \left (a+b x^2\right )}{x^2} \, dx,x,\frac{1}{x}\right )\\ &=x \cos \left (a+\frac{b}{x^2}\right )+(2 b) \operatorname{Subst}\left (\int \sin \left (a+b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=x \cos \left (a+\frac{b}{x^2}\right )+(2 b \cos (a)) \operatorname{Subst}\left (\int \sin \left (b x^2\right ) \, dx,x,\frac{1}{x}\right )+(2 b \sin (a)) \operatorname{Subst}\left (\int \cos \left (b x^2\right ) \, dx,x,\frac{1}{x}\right )\\ &=x \cos \left (a+\frac{b}{x^2}\right )+\sqrt{b} \sqrt{2 \pi } \cos (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )+\sqrt{b} \sqrt{2 \pi } C\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right ) \sin (a)\\ \end{align*}
Mathematica [A] time = 0.133651, size = 80, normalized size = 1.01 \[ \sqrt{2 \pi } \sqrt{b} \left (\sin (a) \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{x}\right )+\cos (a) S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{x}\right )\right )-x \sin (a) \sin \left (\frac{b}{x^2}\right )+x \cos (a) \cos \left (\frac{b}{x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 57, normalized size = 0.7 \begin{align*} x\cos \left ( a+{\frac{b}{{x}^{2}}} \right ) +\sqrt{b}\sqrt{2}\sqrt{\pi } \left ( \cos \left ( a \right ){\it FresnelS} \left ({\frac{\sqrt{2}}{\sqrt{\pi }x}\sqrt{b}} \right ) +\sin \left ( a \right ){\it FresnelC} \left ({\frac{\sqrt{2}}{\sqrt{\pi }x}\sqrt{b}} \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.41774, size = 533, normalized size = 6.75 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68905, size = 208, normalized size = 2.63 \begin{align*} \sqrt{2} \pi \sqrt{\frac{b}{\pi }} \cos \left (a\right ) \operatorname{S}\left (\frac{\sqrt{2} \sqrt{\frac{b}{\pi }}}{x}\right ) + \sqrt{2} \pi \sqrt{\frac{b}{\pi }} \operatorname{C}\left (\frac{\sqrt{2} \sqrt{\frac{b}{\pi }}}{x}\right ) \sin \left (a\right ) + x \cos \left (\frac{a x^{2} + b}{x^{2}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cos{\left (a + \frac{b}{x^{2}} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cos \left (a + \frac{b}{x^{2}}\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]